public void SetPiecePosition(PieceObject piece, int newX, int newY)
 {
     boardPieces[piece.GetX(), piece.GetY()] = null;
     piece.SetXY(newX, newY);
     boardPieces[newX, newY] = piece;
     piece.MovePiece(newX, newY);
     DeselectPiece();
 }