some messing trying to get tile generator working