Remove yaml
Refactor piece.rb into separate files