separated difficulty calculation
working version