Added changePlayer function.