I think putting in "if mass is 0 and red bottle touched, game over" otherwise you can clear the reds on level start before collecting blues. I got to level 19 without the exploit and decided I hit too many reds at the beginning to be able to get much more as it got pretty narrow. Fun game!