fixed pathfinding issues

- main thread now checks for the ready and waiting status before sending
any new path queries