I hope it is okay that I took the liberty to try to solve this issue with your help.
Tried the fix and it works very well! The stack is not shuffled by accident anymore. Shaking the stack while being picked up works flawlessly too.
I also changed the function is_being_shaked to return false whenever a condition is not met. Doing so we have less indents which (in my eyes) is easier to read.
Fixes/Solves Fixes #116
I hope it is okay that I took the liberty to try to solve this issue with your help.
Tried the fix and it works very well! The stack is not shuffled by accident anymore. Shaking the stack while being picked up works flawlessly too.
I also changed the function
is_being_shaked
to return false whenever a condition is not met. Doing so we have less indents which (in my eyes) is easier to read.