not working for last character in d
Merge branch 'master' of https://github.com/grantpeltier/EE360CProject3