arrays numchipsplayer )returns the number of chips on the board belonging to the indicated player the value of player must be or numopensquares()returns the number of squares still open and available for play getwinner()returns the player number ( or for the player who has won the game or if the game is not finished islegalmoverowcol )returns true or false to indicate if the current player can place their chip in the square at position (rowcoloccupiedbyrowcol )which player has chip in the given squarereturns the player number ( or or if the square is empty makemoverowcol )the current player places one of his chips in the square at position (rowcolall chips on the board that should be flipped based on the rules of reversi are flipped implement text-based version of the reversi game using your game logic adt from the previous question define game logic adtsimilar to that of the reversi game logic adtfor the game of checkers