public String determineAuctionResults() {
        if (flightDirection.equals("One-Way")) {
            if (buyerPrice > hiddenPrice) {
                selectedFlight.fare = buyerPrice;
                addReservation(accountNo, selectedFlight.airlineID, selectedFlight.flightNo, selectedFlight.seatClass, new Timestamp(new Date().getTime()), buyerPrice, 1);
                return "reserveFlight";

            } else {
                addReservation(accountNo, selectedFlight.airlineID, selectedFlight.flightNo, selectedFlight.seatClass, new Timestamp(new Date().getTime()), buyerPrice, 0);
                return "auctionError";
            }
        } else {
            if (buyerReturningPrice > hiddenReturningPrice && buyerPrice > hiddenPrice) {
                selectedFlight.fare = buyerPrice;
                selectedReturnFlight.fare = buyerReturningPrice;
                addReservation(accountNo, selectedFlight.airlineID, selectedFlight.flightNo, selectedFlight.seatClass, new Timestamp(new Date().getTime()), buyerPrice, 1);
                addReservation(accountNo, selectedReturnFlight.airlineID, selectedReturnFlight.flightNo, selectedReturnFlight.seatClass, new Timestamp(new Date().getTime()), buyerReturningPrice, 1);
                return "reserveFlightRoundTrip";

            } else if (buyerReturningPrice > hiddenReturningPrice) {
                addReservation(accountNo, selectedFlight.airlineID, selectedFlight.flightNo, selectedFlight.seatClass, new Timestamp(new Date().getTime()), buyerPrice, 0);
                addReservation(accountNo, selectedReturnFlight.airlineID, selectedReturnFlight.flightNo, selectedReturnFlight.seatClass, new Timestamp(new Date().getTime()), buyerReturningPrice, 1);
                return "auctionError";
            } else if (buyerPrice > hiddenPrice) {
                addReservation(accountNo, selectedFlight.airlineID, selectedFlight.flightNo, selectedFlight.seatClass, new Timestamp(new Date().getTime()), buyerPrice, 1);
                addReservation(accountNo, selectedReturnFlight.airlineID, selectedReturnFlight.flightNo, selectedReturnFlight.seatClass, new Timestamp(new Date().getTime()), buyerReturningPrice, 0);
                return "auctionError";
            } else {
                addReservation(accountNo, selectedFlight.airlineID, selectedFlight.flightNo, selectedFlight.seatClass, new Timestamp(new Date().getTime()), buyerPrice, 0);
                addReservation(accountNo, selectedReturnFlight.airlineID, selectedReturnFlight.flightNo, selectedReturnFlight.seatClass, new Timestamp(new Date().getTime()), buyerReturningPrice, 0);
                return "auctionError";
            }

        }
    }