How to look at the game
This game is actually equivalent to Tic Tac Toe, each bag is a place on the grid, and each candy is a row.
For example the following game:
is the same as the following Tic Tac Toe game:
So if you can play Tic Tac Toe, you can play this game too!