I am attempting to use the easystar.js library to find the path between two points within a map for a top down game. However, it only seems to run the findPath command when