Update main.lua
Merge pull request #21 from qaisjp/patch-2

Use arguments in pcall() and not an enclosed function.