public static boolean isInBoardLimits (int MoveToX, int MoveToY, int MoveFromX, int MoveFromY){
        if  (MoveToX<8&&MoveToX>-1&&MoveToY<8&&MoveToY>-1&&MoveFromX<8&&MoveFromX>-1&&MoveFromY<8&&MoveFromY>-1)
            return true;
        else
            return false;
    }