Added winHandler to movePiece function, updated checkWinCondition to update the handler when a winner is found.