get enemy pos function