Added detecting won game. But it is buggy ;/