Detection Algorithms

You could take a look at how iplay88keys implemented recursion in their [GAME] Shape Fill, that might get you started on the right track :playdate_wink: