Making delete game into a function