Refactored mining sim a bit