first sell was around 18K of blocksThe check to see how many blocks can be bought or sold is using the wrong amount.
amountForCredits is doing
**player credits** / **blocks available**
it should be
after that each try was 500-1000 aprox. blocks each selling**player credits** / **price of 1 block**