move game logic for level into the level