Not sure if this is your problem but this jumps out at me:
Isn't blocks a two-dimensional array?Code:if(blocks[k] == 1)
Not sure if this is your problem but this jumps out at me:
Isn't blocks a two-dimensional array?Code:if(blocks[k] == 1)
"Think not but that I know these things; or think
I know them not: not therefore am I short
Of knowing what I ought."
-John Milton, Paradise Regained (1671)
"Work hard and it might happen."
-XSquared