The connection between action and perception