bugfixes @winning condition