How to determine if a tic-tac-toe game is over

Assuming that the moves are numbered left-to-right, up to down, 0..8
This function will check if the list of moves that is passed in (squares) has a winning combination in it.
Currently only the first winning combination is represented by 0,1,2,
There are other winning combinations as well:
You homework is to add the other winning combinations into the winners list