trying to implement a*path finding algo to my bots (characters)