I am trying to implement a tic tac toe game in android to learn the basics. The approach I want to implement the logic is given below.