Made the rotation of the grid much more robust.
Added:
- The (moving) average and standard deviation of the Z coordinate from the user's swipes intended to rotate the grid
- The (moving) average and standard deviation of the duration from the user's swipes intended to rotate the grid
- A value based on the average and stdev of the swipe duration to filter out false-positive swipes that occur when the user's hand is "back-swiping"
- Used the above variables to determine whether the user intended the grid to rotate or not
- Three sensitivity variables that determine the sensitivity of what swipes need to be accepted as those intended to turn the grid. The lower the value the lower the chance a swipe is accepted,
the higher the value the more likely a swipe is accepted as a swipe intended to rotate the grid. But this is still based on the user's behaviour.

Still not perfect, but alot better.
Also; the perfect detectable swipe is performed with two fingers and almost perpendicular (haaks) to the leap.