public boolean exitUp(ArrayList level, int x) {
        boolean exitUp = false;
        int[] exits = null;
        for(int i = 0; i < level.size(); i++) {
            exits = (int [])level.get(i);
            if(exits[1] == x) {
                if((exits[0] & Integer.parseInt("1", 16)) > 0) {
                    exitUp = true;
                }
            }
        }
        return exitUp;
    }