At first every vertex have random balance from -4 to 5. Then it add or substract 1 dollar from random vertex one by one until the sum reach it's goal. The goal sum is genus number + or -1, but more than 0.