extracted tile rendering methods into new class