I'm interested in the code among other things. How do you treat certain squares (in terms of pathfinding) Which pathfinding algorithm are you using? Did you write the pathfinding algorithm? Can I help?
I have an idea to improve the pathfinding. (when you click and your character pathfinds there) So my idea would be to treat the squares with interaction (NPCs, doors to the other areas, etc.) as walls unless the player actually clicked on the interaction.