Server code for Marshmallow Matt Game I'm working on