html platformer - particle collisions