export
default class PlayerController {
	constructor($rootScope, $scope, $localStorage, $log, _, gameModel, playersStore, playerModel, websocket) {
		'ngInject';

		this.$rootScope = $rootScope;
		this.$scope = $scope;
		this.$log = $log;

		this._ = _;
		this.gameModel = gameModel.model;
		this.playerModel = playerModel;
		this.playersStore = playersStore;
		this.ws = websocket;

		this.$log.info('constructor()', this);
	}

	$onInit() {
		this.$log.info('$onInit()', this);
	}

	$onDestroy() {
		return () => {
			this.$log.info('destroy', this);
		};
	}

	showStorage() {
		this.$log.info('showStorage()', this);
	}
};

@@ -90,25 +90,26 @@
 log, _, 
-gameModel
+playersApi
 , player
@@ -252,44 +252,8 @@
  _;%0A
-%09%09this.gameModel = gameModel.model;%0A
 %09%09th
@@ -282,16 +282,48 @@
 rModel;%0A
+%09%09this.playersApi = playersApi;%0A
 %09%09this.p
@@ -552,28 +552,902 @@
 %7D;%0A%09%7D%0A%0A%09
-showStorage(
+onStorageClick(evt) %7B%0A%09%09this.$log.info('onStorageClick()', evt, this);%0A%0A%09%09let cardsSelected = this.player.cardsSelected,%0A%09%09%09cardsInStorage = this.player.cardsInStorage,%0A%09%09%09cardsInHand = this.player.cardsInHand,%0A%09%09%09onSuccess = (res =%3E %7B%0A%09%09%09%09if (res.status == 200) %7B%0A%09%09%09%09%09this.$log.info(res);%0A%09%09%09%09%7D%0A%09%09%09%7D),%0A%09%09%09onError = (err =%3E %7B%0A%09%09%09%09this.$log.error(err);%0A%09%09%09%7D);%0A%0A%09%09if (this.player.isActive && cardsSelected.length === 3) %7B%0A%09%09%09this.$log.info('Storing your cards: ', cardsSelected);%0A%0A%09%09%09cardsInStorage.push(cardsSelected%5B0%5D);%0A%09%09%09this._.pullAll(cardsInHand, cardsSelected);%0A%0A%09%09%09let plData = %7B%0A%09%09%09%09cardsInHand: cardsInHand,%0A%09%09%09%09cardsInStorage: cardsInStorage,%0A%09%09%09%09totalCards: cardsInHand.length%0A%09%09%09%7D;%0A%0A%09%09%09this.playersApi%0A%09%09%09%09.update(this.player.id, plData)%0A%09%09%09%09.then(onSuccess, onError);%0A%0A%09%09%09this.player.cardsSelected = %5B%5D;%0A%09%09%7D else %7B%0A%09%09%09this.showStorage(this.player);%0A%09%09%7D%0A%09%7D%0A%0A%09showStorage(pl
 ) %7B%0A%09%09th
@@ -1471,24 +1471,28 @@
 wStorage()',
+ pl,
  this);%0A%09%7D%0A%7D
@@ -1490,11 +1490,10 @@
 is);%0A%09%7D%0A
+
 %7D
-;
 %0A

Add logic for player to 'store' cards before they discard