Adding flight api and updating race script