initial tower script code.