Implemented working code and unit tests for besieged()