@Override
    public void init(GameContainer gameContainer) throws SlickException {
        player = new BasicEntity((1*32), (1*32), level);

        int w = 0;
        int h = 0;
        try {
            Scanner scanner = new Scanner(new File("hitbox.txt"));
            int y = 0;
            ArrayList<Point> points = new ArrayList<Point>();
            while (scanner.hasNextLine()) {
                String line = scanner.nextLine();
                int x = 0;
                for(char c: line.toCharArray()){
                    int i = Integer.parseInt(String.valueOf(c));
                    System.out.println(i);
                    if(i == 1){
                        System.out.println("Impassable at: " + x + ":" +y);
                        points.add(new Point(x,y));

                    }
                    x++;
                }
                w = x;
                y++;
            }
            h =y;
            myMap = new Map<Node>(w,h, new BasicNodeFactory());
            for(Point p : points){
                myMap.setWalkable(p.x,p.y,false);
            }
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
        tX = (int) getRandomInteger(0, 800);
        tY = (int) getRandomInteger(0, 600);

        for(int i = 0;i!= map.length;i++){
            map[i] = 0;
        }



        path =  myMap.findPath(1, 1, 1,6);
        new CompletePath(new  ArrayList<Node>(path),player,32);
    }