Moved rendering away from Grid logic, created helper Quad class.