Range is now actually ready. Fixed a bug where tiles were still being marked as reachable despite the fact that an enemy was blocking the way.
A possible imporvement from here is a proper implementation of a priority queue, but the current implementation works just fine.