fixed bug where winnign check stopped after first cell test