n-body dog implementation(Look for comments w/in the program)