hw1 three match game finished