@java.lang.Override

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