Ending bug fixed

Every turn rule bug fixed. Player does not win in the beginning.