Fixed some bugs around actual tile ranges, renamed some of the Tile
states to be more intuitive.