finshed coding used class digger engine (logic only, UI: not yet)