replaced startsWith with substr, so it works on Chrome; added 2 levels and made buildings able to have different start capacities