Revert "Revert "adaptive difficulty""

This reverts commit 33d1a5cf90c61ef6748eb320ecf853d073581f3b.
Revert "Revert "fixing indentation""

This reverts commit 4080bde6a6bf0cfce1b805e0f28aa97bc9f27c8b.
Revert "Revert "correcting indentation""

This reverts commit 8052f16fb16f25034bb0cbefbdf3be18821f008c.
fixing math