Added tiles. Also fixed several bugs.