The combined behavioural tendencies of predator and prey mediate the outcome of their interaction