Refactoring: Grid

Refactor grid into its own class. Update engine and constants. Slight
update to character. Update case of utilities for consistency.