Changed end turn to use a switch instead of if statements