Created queue.java and added a try catch to playback