Added the playback of code on pressing the play button