C++ Project that simulates gravity on particles