Revert "works how I wanted it to work now, but maybe a little slow, not sure"

This reverts commit 60b5f6886a268fd89b2cdd9d6352d77b0baadb8f.
Revert "Revert "works how I wanted it to work now, but maybe a little slow, not sure""

This reverts commit 69c5c8e623c4ff027e06a4e76c52bcf22f32d263.
almost there but trail position not quite working
finally, it works well enough