Substitute constants with instance variables, providing grid size control when instantiating an object.
Move instance variable definitions into definitions.