Fixed making moves for both computer and human players, with error checking.