Implementation of Tic-Tac-Toe