Fixing board isTerminal check to not count empty row, column or diagonal as a win