making tileToSprite() method non-static