drawing ui

code generates the tiles UI