Fixed erronious moves in shards.cc.
Changed function in shards.cc to take reference.
merged
fixed merge conflict