Added main loop to game.