added turn functionality