AI win bugfix