c program for micro-controller that plays board games