Inserting code to check for levels of the game.