A simulation of gravity affecting massive bodies in space