Adjusted particle collision

Added some checks to fix the game being stuck in a loop due to particle
collision. For more, see the comment on #11.

This fixes #11.