Adding getPixelColor for the grid based coordination