fix the keyvalue of 'i'
adjust the order of switching players
send reply only when current pawn is changed

if there's no new pawn to switch, reply won't be sent back to client