Escape from Zurg: minor correction

Add main/1 function to launch via escript.
Stone pile: minor fix

Use div instead of / and round.
Discrete function

Erlang implementation