player attack player functionality