final int boundSpeedX = X_BOUND / 30;
final int boundSpeedY = Y_BOUND / 30;
final int count = 0;
for (final Flight flight : flights) {
flight.setStatus(Flight.Status.CLOSED);
final Location vector = DataStore.generateLocation(boundSpeedX, boundSpeedY);
switch (count / 4) {
case 0:
vector.setX(-vector.getX());
break;
case 1:
vector.setY(-vector.getY());
break;
case 2:
vector.setX(-vector.getX());
vector.setY(-vector.getY());
break;
case 3:
// no change
break;
}