changed GameState.pieces to [ObjectIds]
more dbHelper code