q4 works; q3 works; q2 works

Q2 and q3 may have a bug since they win only about 20% of the time.
q4 is based on q3 but it wins about half of the time (like it says in
the handout for q4)