Before anyone mentions it, I just noticed it multiplies by zero on the first loop... stupid me.

I'm having other problems now but I'll try to fix them first now that I figured how what this problem was : p