public void play(){

        /*

            Just play function. Play until game end. Determines who is the first player, gives him first turn.

         */

        do {

            if (!endGame) {

                if (computerFirst) {

                    computer.computerTurn();

                    show();

                    System.out.println();

                    if (!computer.getEndGame()) {
                        endGame = true;
                    }

                    if (!endGame) {

                        player.playerTurn();

                        show();

                        System.out.println();

                        endGame = player.checkEndGame();

                    }

                } else {

                    if (!computerFirst) {

                        player.playerTurn();

                        show();

                        System.out.println();

                        endGame = player.checkEndGame();

                        if (!endGame) {

                            computer.computerTurn();

                            show();

                            System.out.println();

                            if (!computer.getEndGame()) {
                                endGame = true;
                            }

                        }

                    }

                }

            }

        } while (!endGame);

    }