ADD: Continued work on algorithm, checking occupied code