This is my solution to the CodinGame challenge Batman Hostage Rescue Part 1 - Heat Detector: