(refactor) Fixes issue with win/lose message box. Disables submit/reset button after the user submits code.