can you insert a comment explaining the function parameters to WriteGame?