added modifications from debugging takeTurn