added rotate buttons counter/clockwise added thresholds for turn and flip