First draft of script to process a game