added diagonal check
added check for draw