Added pause, sound control and fixed some bugs