public void castling(Figure king, XY to) {
		int rookX = (to.getX() == 6) ? 7 : 0;
		int kingY = king.getXY().getY();
		int newRookX = (to.getX() == 6) ? 5 : 3;
		move(king, to);
		move(getFigure(rookX, kingY), newRookX, kingY);
		
	}