added tiles and basic tile related functions