import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.awt.GridLayout;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.border.Border;
import javax.swing.border.LineBorder;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.event.ItemListener;
public class boardgame2 {
public boardgame2(){
JPanel rng = new JPanel();
JPanel center = new JPanel();
JFrame frame = new JFrame("Board Game");
frame.add(rng);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
rng.setLayout(new FlowLayout());
center.setLayout(new GridLayout(9,0));
frame.setLayout(new BorderLayout());
Border border = LineBorder.createGrayLineBorder();
JLabel label64 = new JLabel("64", JLabel.CENTER);
label64.setBackground(Color.BLUE);
label64.setBorder(border);
center.add(label64);
JLabel label63 = new JLabel("63", JLabel.CENTER);
label63.setBorder(border);
center.add(label63);
JLabel label62 = new JLabel("62", JLabel.CENTER);
label62.setBorder(border);
center.add(label62);
JLabel label61 = new JLabel("61", JLabel.CENTER);
label61.setBorder(border);
center.add(label61);
JLabel label60 = new JLabel("60", JLabel.CENTER);
label60.setBorder(border);
center.add(label60);
JLabel label59 = new JLabel("59", JLabel.CENTER);
label59.setBorder(border);
center.add(label59);
JLabel label58 = new JLabel("58", JLabel.CENTER);
label58.setBorder(border);
center.add(label58);
JLabel label57 = new JLabel("57", JLabel.CENTER);
label57.setBorder(border);
center.add(label57);
JLabel label56 = new JLabel("56", JLabel.CENTER);
label56.setBorder(border);
center.add(label56);
JLabel label55 = new JLabel("55", JLabel.CENTER);
label55.setBorder(border);
center.add(label55);
JLabel label54 = new JLabel("54", JLabel.CENTER);
label54.setBorder(border);
center.add(label54);
JLabel label53 = new JLabel("53", JLabel.CENTER);
label53.setBorder(border);
center.add(label53);
JLabel label52 = new JLabel("52", JLabel.CENTER);
label52.setBorder(border);
center.add(label52);
JLabel label51 = new JLabel("51", JLabel.CENTER);
label51.setBorder(border);
center.add(label51);
JLabel label50 = new JLabel("50", JLabel.CENTER);
label50.setBorder(border);
center.add(label50);
JLabel label49 = new JLabel("49", JLabel.CENTER);
label49.setBorder(border);
center.add(label49);
JLabel label48 = new JLabel("48", JLabel.CENTER);
label48.setBorder(border);
center.add(label48);
JLabel label47 = new JLabel("47", JLabel.CENTER);
label47.setBorder(border);
center.add(label47);
JLabel label46 = new JLabel("46", JLabel.CENTER);
label46.setBorder(border);
center.add(label46);
JLabel label45 = new JLabel("45", JLabel.CENTER);
label45.setBorder(border);
center.add(label45);
JLabel label44 = new JLabel("44", JLabel.CENTER);
label44.setBorder(border);
center.add(label44);
JLabel label43 = new JLabel("43", JLabel.CENTER);
label43.setBorder(border);
center.add(label43);
JLabel label42 = new JLabel("42", JLabel.CENTER);
label42.setBorder(border);
center.add(label42);
JLabel label41 = new JLabel("41", JLabel.CENTER);
label41.setBorder(border);
center.add(label41);
JLabel label40 = new JLabel("40", JLabel.CENTER);
label40.setBorder(border);
center.add(label40);
JLabel label39 = new JLabel("39", JLabel.CENTER);
label39.setBorder(border);
center.add(label39);
JLabel label38 = new JLabel("38", JLabel.CENTER);
label38.setBorder(border);
center.add(label38);
JLabel label37 = new JLabel("37", JLabel.CENTER);
label37.setBorder(border);
center.add(label37);
JLabel label36 = new JLabel("36", JLabel.CENTER);
label36.setBorder(border);
center.add(label36);
JLabel label35 = new JLabel("35", JLabel.CENTER);
label35.setBorder(border);
center.add(label35);
JLabel label34 = new JLabel("34", JLabel.CENTER);
label34.setBorder(border);
center.add(label34);
JLabel label33 = new JLabel("33", JLabel.CENTER);
label33.setBorder(border);
center.add(label33);
JLabel label31 = new JLabel("31", JLabel.CENTER);
label31.setBorder(border);
center.add(label31);
JLabel label32 = new JLabel("32", JLabel.CENTER);
label32.setBorder(border);
center.add(label32);
JLabel label30 = new JLabel("30", JLabel.CENTER);
label30.setBorder(border);
center.add(label30);
JLabel label29 = new JLabel("29", JLabel.CENTER);
label29.setBorder(border);
center.add(label29);
JLabel label28 = new JLabel("28", JLabel.CENTER);
label28.setBorder(border);
center.add(label28);
JLabel label27 = new JLabel("27", JLabel.CENTER);
label27.setBorder(border);
center.add(label27);
JLabel label26 = new JLabel("26", JLabel.CENTER);
label26.setBorder(border);
center.add(label26);
JLabel label25 = new JLabel("25", JLabel.CENTER);
label25.setBorder(border);
center.add(label25);
JLabel label24 = new JLabel("24", JLabel.CENTER);
label24.setBorder(border);
center.add(label24);
JLabel label23 = new JLabel("23", JLabel.CENTER);
label23.setBorder(border);
center.add(label23);
JLabel label22 = new JLabel("22", JLabel.CENTER);
label22.setBorder(border);
center.add(label22);
JLabel label21 = new JLabel("21", JLabel.CENTER);
label21.setBorder(border);
center.add(label21);
JLabel label20 = new JLabel("20", JLabel.CENTER);
label20.setBorder(border);
center.add(label20);
JLabel label19 = new JLabel("19", JLabel.CENTER);
label19.setBorder(border);
center.add(label19);
JLabel label18 = new JLabel("18", JLabel.CENTER);
label18.setBorder(border);
center.add(label18);
JLabel label17 = new JLabel("17", JLabel.CENTER);
label17.setBorder(border);
center.add(label17);
JLabel label16 = new JLabel("16", JLabel.CENTER);
label16.setBorder(border);
center.add(label16);
JLabel label15 = new JLabel("15", JLabel.CENTER);
label15.setBorder(border);
center.add(label15);
JLabel label14 = new JLabel("14", JLabel.CENTER);
label14.setBorder(border);
center.add(label14);
JLabel label13 = new JLabel("13", JLabel.CENTER);
label13.setBorder(border);
center.add(label13);
JLabel label12 = new JLabel("12", JLabel.CENTER);
label12.setBorder(border);
center.add(label12);
JLabel label11 = new JLabel("11", JLabel.CENTER);
label11.setBorder(border);
center.add(label11);
JLabel label10 = new JLabel("10", JLabel.CENTER);
label10.setBorder(border);
center.add(label10);
JLabel label9 = new JLabel("9", JLabel.CENTER);
label9.setBorder(border);
center.add(label9);
JLabel label8 = new JLabel("8", JLabel.CENTER);
label56.setBorder(border);
center.add(label56);
JLabel label7 = new JLabel("7", JLabel.CENTER);
label7.setBorder(border);
center.add(label7);
JLabel label6 = new JLabel("6", JLabel.CENTER);
label6.setBorder(border);
center.add(label6);
JLabel label5 = new JLabel("5", JLabel.CENTER);