It's bad to intentionally waste time at work.
John is overloaded with his assigned tasks at work, which makes him stressed.
John wants to decrease his stress.
John listens to relaxing music on his phone while he continues working.
John plays several games of solitaire to make himself feel better.
John is able to concentrate better with the music, and John manages to finish all his tasks for the day.
John does not get his work done leaving him with more tasks to do the following day.