Continue the autotile layout

do not handle inner corners yet
probably full of bugs
needs a lot of refactor