Fixed gamelayer.js
merged with tony