Updated some horrible mistakes on the algorithm, still need to edit. Need to take dog out to bathroom