made map class use tile objects for tiles rather than ints