def received_message(self, m): move = self.player.make_move(Board.from_textmessage(m)) if move: self.send(move)