fixed a bug with not setting platforms[2].active to true in addPlatform().