fix bugs when exploding tiles near the edge of the map, refactoring robot sub
refactored random sub bot