Directions: Write a program in Java to simulate the game Connect Four between a human and a bot. Each player should be allowed to add one disc to the grid at a time until a winner is declared by having 4 discs in a row. The game should flow as follows: 1. Human starts the game by picking a disc 2. Human then selects a column by entering 3. The humans disc color (a single letter 4. The human and bot will alternate turns 5. Game ends when either the human or bot 6. If board has no more open spaces and ne Guidelines: A grid with seven columns and six rows is required The grid should be initialized with characters Black discs should be represented by B and Red discs R Discs should replace the next empty cell in the column chosen. A column should not be allowed to be selected when the top cell (and all the cells beneath) are no longer empty The grid should be displayed after every turn. Game should allow for restart after a winner is declared. Board should be reset if restart is selected Bots moves should be randomDirections: Write a program in Java to simulate the game Connect Four between a human and a bot. Each player should be allowed to add one disc to the grid at a time until a winner is declared by having 4 discs in a row. The game should flow as follows: 1. Human starts the game by picking a disc 2. Human then selects a column by entering 3. The human’s disc color (a single letter 4. The human and bot will alternate turns 5. Game ends when either the human or bot 6. If board has no more open spaces and ne Guidelines: A grid with seven columns and six rows is required The grid should be initialized with characters Black discs should be represented by ‘B’ and Red discs ‘R Discs should replace the next empty cell in the column chosen. A column should not be allowed to be selected when the top cell (and all the cells beneath) are no longer empty The grid should be displayed after every turn. Game should allow for restart after a winner is declared. Board should be reset if restart is selected Bot’s moves should be random Show transcribed image text Directions: Write a program in Java to simulate the game Connect Four between a human and a bot. Each player should be allowed to add one disc to the grid at a time until a winner is declared by having 4 discs in a row. The game should flow as follows: 1. Human starts the game by picking a disc 2. Human then selects a column by entering 3. The human’s disc color (a single letter 4. The human and bot will alternate turns 5. Game ends when either the human or bot 6. If board has no more open spaces and ne Guidelines: A grid with seven columns and six rows is required The grid should be initialized with characters Black discs should be represented by ‘B’ and Red discs ‘R Discs should replace the next empty cell in the column chosen. A column should not be allowed to be selected when the top cell (and all the cells beneath) are no longer empty The grid should be displayed after every turn. Game should allow for restart after a winner is declared. Board should be reset if restart is selected Bot’s moves should be random