simulator doesn't support enums, do mode as strings; switch/case doesn't support strings, do if statements; drop unused variables; reorginzed variable declerations; passing current button to run and program methods