def destroy_pieces(turn):
    """
    Set `turn_destroyed` for every piece which is destroyed
    """
    pieces = []
    destroyed_piece_states = turn.piecestates.filter(destroyed=True)
    for piece_state in destroyed_piece_states:
        piece = piece_state.piece
        piece.turn_destroyed = turn
        piece.save()
        pieces.append(piece)
    return pieces