Behavioural flexibility and problem-solving in a tropical lizard