Fixed wrap-around victory conditions, and added a tie-game condition when the board is full.