protected void doGet(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {
		AjaxRequest ajaxRequest = AjaxRequest.action(request);
		Player player = ajaxRequest.getPlayer();
		Field field = ajaxRequest.getField();
		String status = "true";
		Integer amount = 0;
		
		TransactionTemplate transactionBuilder = null;
		
		if (field instanceof Payment) {
			if(player.getCash() > field.getAmount()) {
				amount = paymentCalculator.calculateAmount(field, null);
			} else {
				amount = player.getCash();
			}
			
			transactionBuilder = new PlayerToMonopolyTransaction();
			transactionBuilder.transact(player, player.getMonopoly(), amount);
		} else if (field instanceof Property) {
			Integer chargeAmount = propertyCalculator.calculateAmount(field, PaymentTypeEnum.Charge);
			
			if(player.getCash() > chargeAmount){
				amount = chargeAmount;
			} else{
				amount = player.getCash();
			}
		
			Player owner = ((Property) field).getOwner();
			
			if (owner != null) {
				transactionBuilder = new PlayerToPlayerTransaction();
				transactionBuilder.transact(player, owner, amount);
			} else {
				transactionBuilder = new PlayerToMonopolyTransaction();
				transactionBuilder.transact(player, player.getMonopoly(), amount);
			}
		}
		
		if(player.getCash() == 0){
			status = "end";
		}
		
		player.setLocation(field.getLocation());

		SessionController.changePlayerInSession(request);
		response.sendRedirect("game.jsp?status="+status);
	}