Adding code for tic tac toe