implemented "end game" button