v3.3: removed difficulty levels; optimized some code