fixed leaks in opponent_can_move_to_position.