@java.lang.Override
    public boolean isValidMove(int MoveToX,int MoveToY,int MoveFromX,int MoveFromY) {
        if ((((MoveFromX-MoveToX)==1)||((MoveFromX-MoveToX)==0)||((MoveFromX-MoveToX)==-1))&&(((MoveFromY-MoveToY)==1)||((MoveFromY-MoveToY)==0)||((MoveFromY-MoveToY)==-1))){
            return true;
        }
        if (MoveFromX-MoveToX==0&&(MoveFromY-MoveToY==2||MoveFromY-MoveToY==-2))
            return true;
        else
        return false;
    }