home/x-o-referee.py: x-o-referee functionality implemented