implemented restarting the game