.value converted to .val --  now win conditions properly function