Removed unnecessary Process.exit in end_game method