added code that can play or stop the midi file