added A* pathfinding for playerCharacter