Fixed memory leaks. Clamped dificulty.