flow chart how a gold mine works