writing tile utility class to hold globals