public int[] getNextField(int row, int column, SearchDirections direction){
        int[] ret = new int[2];
        int xadd=1;
        if(direction== SearchDirections.LEFT){
            xadd=-1;
        }
        ret[1]=(column+xadd)%getSize();
        if(ret[1]<0){
                ret[1]+=getSize();
            }
        if((column+xadd)<this.getSize() && (column+xadd)>=0){
            ret[0]=row;
        } else {           
            ret[0]=(row+xadd)%getSize();
            if(ret[0]<0){
                ret[0]+=getSize();
            }
        }
        return ret;
    }