Game tree now working. Next is choosemove.