Fix template game code