Approach :
- MAke a Game component which will contain Board container as a child.
- Board component will have all the functionalities inside it. and have child components as : Winnermarks, Winnername, Gameover(restart). all neccesary function for child will be passed as props through Board component.
- Winnermarks component will accept the function from parent to count marks of both the players.and display it.
- WinnerName component will accept the function from parent to count marks of both the players.and display it. 5.Restart Component will accept thefunctionality from the parent component Board.