finished logic for turns