public GameCharacter.dir RandomDir(int i){
        //System.out.println("RANDOM DIR");
        switch(i){
            case 0: return  GameCharacter.dir.left;
            case 1: return  GameCharacter.dir.right;
            case 2: return  GameCharacter.dir.up;
            case 3: return GameCharacter.dir.down;
            default: return GameCharacter.dir.down;
        }
    }