Added function to get value at (x,y) in the map