added is_own_piece function
unittests for is_own_piece function