Male peacocks put on quite a show for their mates, and now scientists understand more of what goes into their wiggles