Finished for the night, but theres a thing u need to fix
I dont know if you have it already but your enemies need an actual X and Y in accordance to the map, otherwise the pathfinding algorithm doesnt know where the player is when the player moves.