Draft pathfinding code. RMB to move player.