interval to call turn function