public AState getGoalState()
	{
		if(this.goalState == null)
		{
			for(int i = 0; i < this.map.length; i++)
			{
				for(int j = 0; j < this.map[0].length; j++)
				{
					if(this.map[i][j].isGoal())
					{
						this.goalState = this.map[i][j];
						return this.goalState;
					}
				}
			}
		}
		
		return this.goalState;
	}