fixed goal state to use isObstacle().