There is a difference between being distracted from one's unhappiness at work and being genuinely happy at work. The former is the product of parties, contests, ping pong, donuts and entertainment. The latter is the result of finding meaning in one's work, feeling valued, making learning core to work and having a sense of progress.
Genuine happiness at work is possible. It takes growing the kind of culture of meaning, value, learning and achievement.