added win condition checking, amended count increment