made the game loop