Refactored the tile spawn system's inner classes.