diff --git a/app/src/main/java/com/wyattjmiller/tictactoeapp/MainActivity.kt b/app/src/main/java/com/wyattjmiller/tictactoeapp/MainActivity.kt index 552b5b2..d153740 100644 --- a/app/src/main/java/com/wyattjmiller/tictactoeapp/MainActivity.kt +++ b/app/src/main/java/com/wyattjmiller/tictactoeapp/MainActivity.kt @@ -154,8 +154,8 @@ class MainActivity : AppCompatActivity(), View.OnClickListener { } private fun checkGameState(button: Button) { - if (mGameWon != GameOption.No) { return } else { - if (button.text != "") { return } else { + if (mGameWon != GameOption.No) return else { + if (button.text != "") return else { val buttonText = mGameboard.placePlayerPiece() button.text = buttonText val winner = isGameWon()