Modified it to (hopefully) work for more than one game.