switch turn is private
Organizing code