It won't be exactly refering to the given problem, but I wanna share my mistake here, maybe some1 will make simmilar one and will also land with his/her problem here:
Ive got Unexpected token ILLEGAL
error because I named a function with a number as 1st char.
It was 3x3check()
.
Changing it to check3x3()
solved my problem.