implement turn done functionality