Use parse instead of deserialize
Also use 'serialize' for Piece
Forgot to change the helper array too