core: opponent liberty updates and corresponding unit test additions