Update checkFlights.java