Case:34002 Added checking for end of game. (Missing check for tie)