Initialize pieces on constructor
efa410d
Many prototype functions and properties use it and if it hasn't been initialized it will throw error as it's undefined.