Added a buy and sell function to the planet class, which will take a List<resource> from the buy and sell screen which are all the resources which has been changed through transaction. Then it goes through the resource list on the planet and the changes and implements the changes.