Creating a gravitation simulation