Extract method 1 (CheckGameStatus) - creates a new function to check the status of the game and replaced  the 2 duplicate code locations with the function call.