Changed wait to until pause button is available to click, fixed typo, and some non converted issues from changing to a class