Use let instead of a def inside of doseq.
Move board functions and definitions out into its own file.