Add virtualenv to .gitignore and turn `insert_game` into a function