create function and variables initialisation
use of this
debugging from old code
WIP
working without most of the comments
remove useless arrays
generate coins
SAVEPOINT