Add code to calculate speed for a given level/wave.