Included grid looping engine/logic

Grid looping can now work with toggling, has proper timing, can take an input object, and input scales.