added check winning board function