Creating a level cycle / end game detection