Coins deployment algorithm implemented

TODO: deploy coins on groind too.