Fixes the game model so that the games properly update.
Adds a function where the hasEnded game takes a parameter to set whether it should push its changes to the server
Fixes #103
Merge branch 'dev' of https://github.com/cs3733bdt/wpi-suite into dev

# By Peter (2) and others
# Via Jeffrey Signore (2) and others
* 'dev' of https://github.com/cs3733bdt/wpi-suite:
  Changes the order of validation on the key pressed event for addValue text field, so that now validation occurs before enter is pressed, in order to enable to deck to be saved even if the user forgot to hit enter on a value. Jeffrey Signore, Peter Leondires
  Completes validation for active games panel. Also reformats some of the gui features
  Makes deck tabs be reselected if they are clicked again instead of opening another copy of the tab.
  Fills deck fields correctly when you open a saved deck.