added the next turn functionality