<div class="sq-player" ng-init="pModel = playerCtrl.playerModel.model; player = playerCtrl.player"
	ng-class="{
		'active': player.isActive,
		'current': player.isCurrent
	}">
	<div class="row">
		<div class="col-sm-3">
			<img ng-src="{{player.img}}"/>
			<div>{{player.name}}</div>
		</div>
		<div class="col-sm-9">
			<div class="sq-player-cards" ng-show="playerCtrl.gameModel.isGameStarted">
				<div class="cards-group hand">
					<card
						ng-show="player.isCurrent && player.cardsInHand.length"
						ng-repeat="card in player.cardsInHand"
						card-id="{{card}}"
						card-type="hand"
						player="player"
					></card>
					<card
						ng-show="!player.isCurrent && player.totalCards"
						ng-repeat="n in playerCtrl._.range(0, player.totalCards)"
						card-id="{{null}}"
						card-type="hand">
					</card>
				</div>
				<div class="storage">
					<card
						ng-show="card"
						ng-repeat="card in player.cardsInStorage"
						card-id="{{card}}"
						card-type="storage">
					</card>
				</div>
			</div>
		</div>
	</div>
</div>

<div class="sq-player" ng-init="pModel = playerCtrl.playerModel.model; player = playerCtrl.player; isCurrent = player.id === pModel.player.id"
	ng-class="{
		'active': player.isActive,
		'current': isCurrent
	}">
	<div class="row">
		<div class="col-sm-3">
			<img ng-src="{{player.img}}"/>
			<div>{{player.name}}</div>
		</div>
		<div class="col-sm-9">
			<div class="sq-player-cards" ng-show="playerCtrl.gameModel.isGameStarted">
				<div class="cards-group hand">
					<card
						ng-show="isCurrent && player.cardsInHand.length"
						ng-repeat="card in player.cardsInHand"
						card-id="{{card}}"
						card-type="hand"
						player="player"
					></card>
					<card
						ng-show="!isCurrent && player.totalCards"
						ng-repeat="n in playerCtrl._.range(0, player.totalCards)"
						card-id="{{null}}"
						card-type="hand">
					</card>
				</div>
				<div class="storage">
					<card
						ng-show="card"
						ng-repeat="card in player.cardsInStorage"
						card-id="{{card}}"
						card-type="storage">
					</card>
				</div>
			</div>
		</div>
	</div>
</div>

Fix bug with 'currentPlayer' not being defined when 'Join' is clicked
Fix bug with 'currentPlayer' not being defined when 'Join' is clicked
