i made it detect all the complete lines of 3+ beads !
i couldnt get any animations right tho, so i just made it find and remove lines only when R is pressed
no advanced algorightm, just there is a nexter variable in addition to next, and when dropping, nexter is moved to next, and then nexter is chosen randomly
it looks kinda meh ...
(only if there is a path) (no animation yet !)
tweaked the sizes so that the difference between fruits is more visible !
This submission is empty
so i also made the "game over" condition check the velocity of the body above the line, which should make it not possible to accidentally lose by double-clicking !
also, made the fruits a bit bigger again ...
oh, and f5 or ctrl+r restarts the game now