Final code for the arduino based tic tac toe board. The Picaso controller on the Screen is used as a slave controller and the arduino is the master.