Sped up the win function, which currently only works with the 3 x 3 board.