Rewriting Script.cpp, preparing for animation