Implemented kill player function