fixed game generate algo and updated spec