checks if there is a tic tac toe in any sized square in 2d