Update pieces.js