beginning of the end

setting up functionality to finish the game