impletement gameboard creation and refactor helper functions