fixed stupid error in tile assignment