Iwillig/extract tile class