Refactored Board.rb: