public Pos findGoalPos() throws Exception
    {
        ArrayList<String> sTypes = new ArrayList<>();
        for(int i = 1; i < 5; i++)
        {
            for(int j = 1; j < 5; j++)
            {
                //loops over the board, trying to find a unknown square.
                sTypes = m_Logic.locateAllAt(j, i);
                if(sTypes.isEmpty())
                {
                    return new Pos(j,i);
                }
            }
        }
        
        for(int i = 1; i < 5; i++)
        {
            for(int j = 1; j < 5; j++)
            {
                boolean visited = false;
                //loops over the board again but this time to find a nonvisited
                //square
                sTypes = m_Logic.locateAllAt(j, i);
                
                for(String type : sTypes)
                {
                    if(type.compareTo("visited") == 0)
                    {
                        visited = true;
                    }
                }
                
                if(!visited)
                    return new Pos(j,i);
            }
        }
        return new Pos(-1,-1);
    }