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