adds turn changing logic