'Moves obj to new coordinates in this wilderness.
Args:
obj (object): the object to move
new_coordinates (tuple): tuple of (x, y) where to move obj to.'

def move_obj(self, obj, new_coordinates):

    self.itemcoordinates[obj] = new_coordinates
    old_room = obj.location
    obj.location = None
    try:
        room = self.db.rooms[new_coordinates]
        self._destroy_room(old_room)
    except KeyError:
        if ((old_room and (not inherits_from(old_room, WildernessRoom))) or (not old_room)):
            room = self._create_room(new_coordinates, obj)
        else:
            create_new_room = False
            if (old_room.wilderness != self):
                create_new_room = True
                old_room.wilderness.at_after_object_leave(obj)
            else:
                for item in old_room.contents:
                    if item.has_player:
                        create_new_room = True
                        break
            if create_new_room:
                room = self._create_room(new_coordinates, obj)
            else:
                room = old_room
    room.set_active_coordinates(new_coordinates, obj)
    obj.location = room
    obj.ndb.wilderness = self
