Using path finding algorithm to chase player