parsing halfmoves