world step algorithm, simple version