1st attempt at refactoring
Got board and tile working