I also think it can be done, though I can't say that with 100% certainty. I'm not sure what your timeframe is, but if I can find some free time in the next few days, I might take a crack at it.
I can think of a few different approaches. The most straightforward one would be create the pieces as stimuli, and use position and size properties to evaluate whether a given move is fair.
-Sean