Task
1-Create a new project and add the Oval and Rectangle classes to the package. Add a new Java class
to your project called GameBoard. Instantiate a new GameBoard object in the main method.
2. In the GameBoard class add import statements to allow access to the Color, and JFrame objects.
3. You need to define an instance variable of type JFrame called win.
4. In the constructor you should define the statements necessary to create a JFrame with the title “Tic
Tac Toe”. Use the setBounds(x, y, w, h) method to place the JFrame in the top left corner
of the screen with a width of 195 and height of 215.
5. Define a 2D array of type Rectangle to initialize the board so that it has three rows and three
columns of rectangles. Using a loop the board should alternate the colours of the individual
squares between red and black.
i want