Added logic for finishing game
Merge remote-tracking branch 'origin/master'