extract the grid and color to it's own file.

Signed-off-by: crynobone <crynobone@gmail.com>