added method checkWinSituation
forgot in the last update