Moved triesLeft to class attribute