purge stdin after invalid move