Pure play function for solver

Added pure playTurn which is called by impure playGame. playTurn can be
used by solver.