protected void newGame(MouseEvent e, int nx, int nw, int ny, int nh, TicTacToeBoard tb, TicTacToePlayer tp, Main m, LinkedList<Square> SquareStore) {
        // new game button
        if (tb.getGameOver()) {
            if (e.getX() > nx && e.getX() < nx + nw) {
                if (e.getY() > ny && e.getY() < ny + nh) {
                    for (int i = 0; i < 10; i++) {
                        wipeBoard(tb, tp, SquareStore);
                    }
                }
            }
        }
    }