refactored & commented code, implemented player object for each pad, attempted player.isPlaying & player.isOutputBuilt but they don't really work, probably due to improper object passing.