thinned out next_action code

lookaeahd and symbol_type_to_action now make the code more organized