refactor and initializer for boards