added resetWorld() function