Try not to hit the gray blocks, if even ONE red cube hits them the game will send you to the previous level. I didnt add code for dying on level one, sorry. The error says it al.
Ooohh, i was loosing because my cubes were out of screen, it wasn't really clear with this message, but now i get it