Pretty much a less dynamic, revamped version of my one-line tic tac toe validator. 519 characters and made in Python cause C is a nightmare.