Fixed major bug in pathfinding implementation.

Because of an indentation error, only one neighbor was being considered
for addition to the open set, causing an infinite loop in pathfinding.