Auto tile

Playground code for testing