Added a script for controlling the platforms