updated window size
added pathfinding