Added model associations in app/models/piece.rb and app/models/bid.rb