Update gamelogic.js