get the coordinates of the goal from maze text