added spliteGame function