paylinesArray = [
[
[0],[0],[0],[0],[0],
[1],[1],[1],[1],[1],
[0],[0],[0],[0],[0]
],
[
[1],[1],[1],[1],[1],
[0],[0],[0],[0],[0],
[0],[0],[0],[0],[0]
],
[
[0],[0],[0],[0],[0],
[0],[0],[0],[0],[0],
[1],[1],[1],[1],[1]
],
[
[1],[0],[0],[0],[1],
[0],[1],[0],[1],[0],
[0],[0],[1],[0],[0]
],
[
[0],[0],[1],[0],[0],
[0],[1],[0],[1],[0],
[1],[0],[0],[0],[1]
]
]
You would also need an array to store which paylines the better "bought":
So, in the ende, when you finish spinning you'd check the bets and for each bet you would compare the payline shape with the visible slots.
It's a bit complicated, but I hope I have made myself clear.
Cheers!