refactor to_s method in board.rb