Moved initial commands to new script so the games are loaded when the page is loaded.