private boolean handleBuy(String[] parts) {
        if (parts.length < 3) {
            return false;
        }

        String id = parts[1];
        Stock s = StockControl.queryStock(id);
        if (s == null) {
            return false;
        }

        int amount = Integer.parseInt(parts[2]);
        int newInventory = s.getInventory() - amount;
        if (newInventory < 0) {
            return false;
        }

        double balance = UserControl.getBalance(uid);
        double newBal = balance - s.getPrice() * amount;
        if (newBal < 0) {
            return false;
        }

        StockControl.setInventory(id, newInventory);
        UserControl.addStock(uid, id, amount);
        //UserControl.setBalance(uid, newBal);

        return true;
    }