fix games logic