Committed UpdateWorld Function

Committed UpdateWorld Function
Inefficient but it wont need to be more efficient than it is.