A Tic Tac Toe engine for games of any number of dimensions, players and grid size.