changed goals inner structure for a map in gridworld