CHANGED:applied the first step on putting cookies on gameLayer