the UpdatePlaylist function updates the table `t` that has been passed to it and fills it with the current playlist. Also I have removed the addsong function which felt unneccesary and unused.
MPD client inspired by ncmpcpp written in GO