The blockchain now succesfully mines

Dynamic updates to diffiulty now work and are tested.