LevelStats almost done

All functionallity except for the calculation of credits recieved when a
unit reaches goal. maybe that should be done outside of levelstats and
passed as a parameter?