Added necessary classes, implemented a connectivity graph for map tiles, bit masking evaluates only blue channel of pixels when generating tile map.