Use 'var i' instead of 'i' in for loops.

Fixing projectile collision.

TODO: Add different types of collisions (Bounce, Destruction, Stop)