public void pay(Player from, Player to, double amount) {
        Account payer, receiver;
        payer = getAccount(from);
        receiver = getAccount(to);

        if (payer != null && receiver != null) {
            payer.subtract(amount);
            createPaymentTransaction(payer, receiver, amount);
            receiver.add(amount);
        }
    }