private void restart(){
        System.out.println("Want to see history of steps?(yes/no)");
        if(GetData.getYesOrNoAnswer()){
            gameHistory.showHistory();
        }
        System.out.println("Want to play again?(yes/no)");
        if(GetData.getYesOrNoAnswer()){
            playGame();
        } else {
            System.exit(0);
        }
    }