Fixed bug in routing when route contains diagonal movements.
Fixed crash when trying to spawn non-existent monster or NPC.
Monsters will now prefer reachable enemies as target to unreachable enemies.