Added comments to checkWinner().