OMG is working again, I`ve copyed the code from chap5

mail.lua.. it works now.. but in the error.txt is bigger

check this out
Error: In on_started: [string "main.lua"]:23: attempt to index global 'game' (a nil value)
Error: In on_finished: [string "main.lua"]:21: attempt to index global 'game' (a nil value)
Error: Failed to load script 'main': [string "main.lua"]:20: 'then' expected near 'exist'
Error: In main: attempt to call a string value
Error: Failed to load script 'main': [string "main.lua"]:20: 'then' expected near 'exist'
Error: In main: attempt to call a string value
Error: In on_finished: [string "main.lua"]:21: attempt to index global 'game' (a nil value)
Error: In on_finished: [string "main.lua"]:21: attempt to index global 'game' (a nil value)