I can't find exactly what I think you're mentioning, but I'm pretty sure there should be some way out. One of the more important mechanics was that you can switch while jumping or moving in other ways, which I didn't describe the best through the tutorial. With a well-timed switch, you can jump to climb alternating colors or even jump through a wall of the opposite color if you also move sideways.