Update gamelayer to take the right variables