Really cool idea, never seen a snake game with a switch/door mechanic before! :)
I think the game is a bit hard, because the snake moves so fast. It took me quite a few tries until I made it outside to the pink square. But I had fun :)
It would be even better with a score counter (+ maybe a highscore list) and more stages (with multiple switches and doors?). ;)