fixed game-breaking bug in getAdjacentLocation