difficulty and timer logic implemented