<imp> removed unnecessary 'struct's; <imp> changed Dir's pos to bool;