Fix to dimension and collision detection for Gem.

Adds the ability to debug the rectangle around Player and Gems by
pressing 'd'.