// Defines am i a player one or player two // pt:PlayerType -II- public void AddToGame(Chess game, PlayerType pt) { iam = pt; // Sets the chess object chess = game; // Sets a callback for every step happened AbstractGame.StepHandler ost = new AbstractGame.StepHandler(OnStep); chess.RegisterAsPlayer(ref ost, iam); }