base pathfinding (but while(true) bug still exist); modified dot creation function, scrolling