added player/opponent identification to switchTurn()