Rewrite tic-tac-toe winner using Magic Square.

* References
- http://en.wikipedia.org/wiki/Tic-tac-toe
- http://mathworld.wolfram.com/MagicSquare.html

* Trick used
  - x num 0 for empty cells
  - x 1 num for :o
  - x 2 num for :x