added solutions to finding next_states for lecture 4 of 262