A lot of magic tile logic