title: How to determine game end, in tic-tac-toe?
body: <p>I'm developing tic-tac-toe game, and I need algorithm to check when game ends(and who win).
  In 3x3 game I would check each possible win-situation(there is 8 capabilities). But in 7x7(needed 4 signs in a row or collumn, or diagonal)is a lot of possible win patterns.</p>