I'm about to finish my Simon Says game, but I still have one crucial problem.

After my buttons are shown to the player, I have to wait (according to the level, e.g, if 5 buttons were showed to the user, I have to wait the user to click 5 buttons). I have searched around the internet, but the only answer was "You cannot freeze the android Application... blah blah blah".

Here it is my code:

```
public boolean playerTurn(){
    //Enable buttons
    buttonUp.setClickable(true);
    buttonDown.setClickable(true);
    buttonRight.setClickable(true);
    buttonLeft.setClickable(true);

    /*
     Wait for a button clicks depends on the level, but HOW?
     e.g, if the level is 5, I have to wait for 5 button clicks
     and after it, I can continue to run the code
     */

    /*Check if the user typed the correct order
     *If pressed the correct order
     *return true;
     *else
     *return false
    */
}

```