@Action
    public void computersTurn() {
        
        Player ComputerObject = GameObject.getComputer();
        Player HumanObject = GameObject.getHuman();
        
        if (HumanObject.getResult() >= 17) {
            Object[] options = {"Close", "New game"};
            int OptionIndex = 0;

            Card card = null;

            stopButton.setEnabled(false);
            takeCardButton.setEnabled(false);

            do {
                card = GameObject.takeCard(ComputerObject);
                paintCard(ComputerObject, card);

                if (card.isKnave()) {
                    //some AI for computer player
                    if (ComputerObject.getResult()+11 > GameObject.getMaxScore()) {
                        card.setValue(1);
                    } else {
                        card.setValue(11);
                    }
                }

                if (ComputerObject.getResult() >= 17 && 
                    HumanObject.getResult() < ComputerObject.getResult() &&
                    ComputerObject.getResult() <= GameObject.getMaxScore()) {
                    //Computer is winer, show dialog
                    updatePlayerScore(ComputerObject);
                    
                    OptionIndex = JOptionPane.showOptionDialog(
                        BlackJackApp.getApplication().getMainFrame(),
                        "Sorry, but this time computer is winer!",
                        "Game over",
                        JOptionPane.YES_NO_OPTION,
                        JOptionPane.QUESTION_MESSAGE,
                        null,     //do not use a custom Icon
                        options,  //the titles of buttons
                        options[0]
                    );

                    break;

                } else if (ComputerObject.getResult() > GameObject.getMaxScore()) {
                    //Computer lose, show dialog that player is winer
                    updatePlayerScore(ComputerObject);    
                    OptionIndex = JOptionPane.showOptionDialog(
                        BlackJackApp.getApplication().getMainFrame(),
                        "Congratulation, you won!",
                        "Game over",
                        JOptionPane.YES_NO_OPTION,
                        JOptionPane.QUESTION_MESSAGE,
                        null,     //do not use a custom Icon
                        options,  //the titles of buttons
                        options[0]
                    );

                    break;
                }
            } while (true);

            if (OptionIndex == 1) {
                //Initializing new game
                newGame();
            }
        } else {
            //To stop taking cards score should be at least 17
            JOptionPane.showMessageDialog(
                BlackJackApp.getApplication().getMainFrame(),
                "To stop taking cards, score should be at least 17!");
        }
    }