Choose the correct sentence which has the same meaning as the given one
He played some games and then went to bed.
A.He went to bed before having played some games.
B.After he had played some games, he went to bed.
C.While he was playing some games, he was going to bed.
D.Playing some games, and then he had gone to bed.