music now pauses correctly, and switches between different tracks correctly

main loop now sleeps to keep frame rate more constant