Autotiling

It still has some alpha bug.