Sandbox mini-game in JavaScript