fixed bug in generate platform.Also,  Working speed changing buttons
fixed bug in generate platform.Also, working button to change speed