Changed pieces keys to be strings instead of hashes