Added code to recognize the current status of the game and if anyone won.