Modify the endGame Logic
Merge remote-tracking branch 'origin/master'