essentially functioning extrema tracker, just need to get the arrow drawing working.