Developing the Elfball module

Hi all,
hope you don’t mind me asking a few questions - I’m picking up development of the Elfball module to update the rules.

First quickie - is it possible to pick up whether a piece is next to another piece? IE a piece has different options if it is by itself or next to another piece?

More to come, probably.

Thanks,
Mike