newest
added grid boundary detection
draws boundary lines around grid
fix distortion of grid and split into 9x9 bitmap