once within , he found his way up to the ramparts and from this vantage point looked down to the courtyard , where he spotted cesare himself , talking to a captain of the papal guard posted at the door of the inner citadel .