//main code
public static void main(String[] args) {
//initiate game board
initGame();
//start the game
do {
PlayerMove(Cplayer);
updategame(Cplayer, crow, ccol);
printboard();
//game over message
if (currentstate == you_win){
System.out.println("'X' Won!!");
else if (currentstate == comp_win)
System.out.println("'O' won!!");
else if (currentstate == draw)
System.out.println("It's a Draw :(");
}