Corrected the set_tile method.