Fixed bugs

Combined the run and pause buttons and fixed them.