import android.widget.Toast.*
// MainActivity.kt in OnCreate
var tokens = 3
cheatButton.setOnClickListener {
if (tokens <=3 && tokens!=0) { // Can use also (!(tokens > 3 || tokens == 0))
tokens -= 1
makeText(this, "Cheats remaining $tokens", LENGTH_SHORT).show()
Log.d( TAG, "TOKENS $tokens")
val answerIsTrue = quizViewModel.currentQuestionAnswer
val intent = CheatActivity.newIntent(this@MainActivity, answerIsTrue)
startActivityForResult(intent, REQUEST_CODE_CHEAT)}
else { cheatButton.isEnabled = false
makeText(this, "Oh well, you are out of cheats", LENGTH_SHORT).show() }
}