implement checker for checking tic tac toe board