Simplify the implementation of the Tic-tac-toe game engine