Fixed code in doTurn that sets the active board