then , moving on its three free legs and flapping its wings occasionally to help with its balance , it trotted away across the plaza and headed towards the-what once had been the patrician 's palace .