Added guessing and losing functionality