Rewriting the code for the lightsaber