public int getInt(Hint h){
        if(h == Hint.NORTH){
            return 0;
        } else if(h == Hint.EAST){
            return 1;
        } else if(h == Hint.SOUTH){
            return 2;
        } else if(h == Hint.WEST){
            return 3;
        } else if(h == Hint.NORTH_EAST){
            return 4;
        } else if(h == Hint.SOUTH_EAST){
            return 5;
        } else if(h == Hint.SOUTH_WEST){
            return 6;
        } else if(h == Hint.NORTH_WEST){
            return 7;
        } else {
            return -1;
        }
    }