added close game and restart game functions