Add command to close frame
Split out buffering code, make -main more repl-friendly
Fix errors in previous commit
Add initial game grid
Working out how to overlay a grid on another grid