Simple utilities for making grid-based canvas games