* @Post: The appropriate rook is moved to the point that the king jumped over
	 * @Return:
	 */
	private void moveCastlingRook(Point p) {
		if(chosenPiece.getX()-p.x>0)//left castle, move rook two right
		{
			Piece theRookToMove =  getPiece(new Point(0,chosenPiece.getY()));
			if(! (theRookToMove instanceof Rook))
			{
				throw new AssertionError("the piece being moved by the castling isn't a rook");
			}

			myBoard.movePiece(theRookToMove, new Point(2,p.y));
			theRookToMove.wasMoved();
		}else//right castle, mvoe rook 3 left
		{
			Piece theRookToMove=getPiece(new Point(7,chosenPiece.getY()));
			if(!(theRookToMove instanceof Rook))
			{
				throw new AssertionError("the piece being moved by the castling isn't a rook");
			}
			myBoard.movePiece(theRookToMove,new Point(4,chosenPiece.getY()));
			theRookToMove.wasMoved();
		}

	}