added print method to board and refactored piece.rb for clarity