Fix some issues in the newblock code
Actually have newblock be called
Fix Mining.hs to use the global queue instead of the global object