Erm... what?
First, I advise you to look here, at the Content Creation Wiki, for a look at what we're covering.
From what I can see, the loop condition has no method call:
for (int a = squares.size() - 1; a >= 0; a--)
Not only that, but your "optimization" actually produces slower raw code...