dialing gameendtemplate and taking out console.logs