Made gamecode LibreJS-compatible