Adds game hasEnded check to refresh in GameTree to keep field up to date real time

Contributors: Chris Knapp and Phillipp Baumann
Merge branch 'EndOnTime' of https://github.com/cs3733bdt/wpi-suite into EndOnTime