Pathfinder fixes, extended debug mode and moved player object to constructor for entities