moving spell system to ECS