Adding the gameloop