mining.rb now uses the player's current level