Fixed a minor bug with overlays. Started to research pathfinding