Bad attempt at pathfinding.