Scratch logic for basic board design/output
Add code generation method
Simplify code generation

* Rubocop style fixes
Simplify random code generation some more
Add initial tests for board & code