Text - Replace the if/else in the ChangeState method by a switch/case.