Refactors board functions
Refactors format-board fn (don't need to loop size)