added a way to lose and win the game (checkForFinish)