There are 6 Levels. For Level 6 you will have to go back and change some solutions.
Personally, I can't consistently beat Level 6, but I know that it's always solvable.
I was thinking of adding an endless mode, but then decided to release the game without it. The difficulty spike is just too hard to actually be fun.