modified games.js