Explosions implemented and better debug stats

Bomb and fire implemented in explosion.js, similar to box.js but not
fully complete. More debug stats and better names for helper functions.