fix passing invalid move to opponent in online mode