Added function for scanning through map

Goes through the entire map