Solved problem of when to turn on gravity wells

This only works if the gravity well system is linear