Consider the following premises. If it is late, then Thomas is playing a game. If Thomas plays a game, then it is late. It is late if and only if Thomas is playing a game. Can we infer the following from them? If is not true that Thomas is playing a game if and only if it is late.
That contradicts the premises. Therefore the answer is no.