refactor initialize in board.rb