fix bug in buy method. will compare if enough shares to buy