I have been reading about Look Up Tables, but this seems a step too far.
A look up table is exactly what your symbols array is.
So like I said it is a matter of replacing fixed numbers ( in that compound if statement) with arrays indexed by an outer loop of all the winning combinations.