Fixed null pointer exception on new level

Fixed the null pointer exception that happened when you changed levels
or when you first start the game.