public Maze(String s)
    {

        try
        {
            BufferedReader br = new BufferedReader(new FileReader(s));
            String s1;
            while ((s1 = br.readLine()) != null)
            {
                rows++;
                columns = s1.length();
            }
            open = new boolean[columns][rows];
            visited = new boolean[columns][rows];
            br = new BufferedReader(new FileReader(s));
            for (int i = 0; i < rows; i++)
            {
                String s2 = br.readLine();
                for (int j = 0; j < columns; j++)
                {
                    open[j][i] = true;
                    if (s2.charAt(j) == CLOSED)
                        open[j][i] = false;
                    if (s2.charAt(j) == START)
                        start = new Point(j, i);
                    if (s2.charAt(j) == GOAL)
                        goal = new Point(j, i);
                }

            }

        }
        catch (Exception ex)
        {
            ex.printStackTrace();
        }
        current = start;
    }