More work on strategy, added code for non-occupied position case.