Tom passed through several stages of emotion when he was left to himself.  First he moped, and then he raged.  Then, as the comical side of the situation forced itself even upon his misery, he laughed.