added a way to exit the game