Implementing the Referee, which is ported from the one in my other open source project "hoxServer".
The API is done using android NDK through JNI interface.
This referee helps to determine whether the game has ended (red or black wins).