Looks like I managed to solve this. Originally, the tank movement was totally random. Now, to avoid them going bumping into walls without need, I have implemented a different solution that scans around the tank. Also -and I think this might have been the actual issue- I was calling overlap on each tank using a loop instead of passing a FlxGroup directly. Looks like it's working so far.