parser now a function
shuffle and dist energy functions in utils