fixed bugs for forks and winning conditions