rename variable lastQuit to lastQuitAttempt