Made the vehicle id an index

Every time you instantiate a vehicle it will automatically increment the id with the help of a static member.