perhaps we can move this into an `initializePieces` function