Update BuyCommand.java

Revert to command method, with some updates to how we get the buyCommand.