allow rectangular grids

This patch allows the game to be played with grids that are rectangular instead of square. The size has to be changed in application.js and main.scss, and then main.css re-generated. Changing the height works well. Changing the width works less well, but still works.

This is actually a preparatory patch to a different modification that I want to make, which requires this and other functionality from the grid and tile types.