Implement a Tic-Tac-Toe game class | Microsoft Interview Question