added win condition logic. game operates well.