winning game state check, sketch code, not tested