private void addTransaction(String playerName, String itemName, int quanitity, double value) {
		
		if (!playerName.equalsIgnoreCase("Shop")) {
			// create a new transaction
			Transaction t = new Transaction(playerName, itemName, quanitity, value);

			// add the transaction to the dataClass
			// check if there is a key for that player
			if (swDataClass.getMerchants().keySet().contains(playerName)) {
				swDataClass.getMerchants().get(playerName).getTransactions().add(t);
			} else {
				// Player is not yet in the database, add them
				Merchant merchant = new Merchant();
				merchant.getTransactions().add(t);
				swDataClass.getMerchants().put(playerName, merchant);
			}
			

			DatabaseConnector.saveTransactions(swDataClass);
		}

	}