private void showMainMenu(Graphics2D g2, Font font) {
        Rectangle2D.Double r1 = DrawText(g2, font, null, "JUGAR VS PC");
        Rectangle2D.Double r2 = DrawText(g2, font, r1, "JUGAR EN RED");
        Rectangle2D.Double r3 = DrawText(g2, font, r2, "SALIR");

        // Check if buttons are pressed
        if (r1.contains(new Point2D.Double(x, y))) {
            start();
        } else if (r2.contains(new Point2D.Double(x, y))) {
            isPlay = true;
            x = 0;
            y = 0;
        } else if (r3.contains(new Point2D.Double(x, y)))
            exit();
    }