Updated to work with updated detect_rollingWin() function