refactor board.rb
refactor game.rb