debugging turnget turn function.
revamping turn algorithm